package com.fl.nettydemo.agreement;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 确认帧
 */
@NoArgsConstructor
public class ConfirmationFrame  extends HeartBeat implements agreementInterface {
    //预留字节
    private String reserveByte;

    public ConfirmationFrame(String IdentificationFrist, String equipmentCode, Integer ByteNum, Integer sign, String IdentificationEnd,String reserveByte) {
        super(IdentificationFrist, equipmentCode, ByteNum, sign, IdentificationEnd);
        this.setReserveByte(reserveByte);
    }

    public String getReserveByte() {
        return reserveByte;
    }

    public void setReserveByte(String reserveByte) {
        this.reserveByte = reserveByte;
    }

    @Override
    public String toString() {
        return "ConfirmationFrame{" +
                "reserveByte='" + reserveByte + '\'' +
                "} " + super.toString();
    }
}
